-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perf small gas opti #31
Conversation
It's more convenient if you provide a gas diff so that we can see what is the improvement |
Yes! Should we add a gas snapshot to the repo @MathisGD @QGarchery ? |
Maybe yes, with the hardhat tests |
Not forge one? |
I think that forge snapshot --diff (which I used to love!) has some issues right now (ref), and forge tests are not a great way to compare gas costs in general because of the fact that everything is made through one unique transaction. |
I found this repo yesterday which seems to provide a similar experience to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there are many other large changes to apply before looking for such gas optimizations...
Besides, why are we going back to require
checks instead of conditional reverts with custom errors?
This PR is a great illustration though
There's a discussion for this specific question #30 |
after / before